import { Inject, Injectable } from '@nestjs/common';
import { Device } from '../entities/Device';
import { InjectRepository } from '@nestjs/typeorm';
import { DataSource, Repository } from 'typeorm';
import { BaseService } from '../base/base.service';

@Injectable()
export class DeviceService extends BaseService<Device>{
    constructor(
        @InjectRepository(Device) protected repository:Repository<Device>,
        public dataSource: DataSource
    ) {
        super()
        this.primaryKey = 'id'
    }
}
